package com.redis.service;

import com.redis.entity.City;
import com.redis.entity.Device;
import com.redis.entity.User;

import java.util.List;

public interface UserService {

    int addUser(User user);

    List<User> findAll(int pageNum, int pageSize);

    User selectByPrimaryKey(String id);

    List<City> findAll();

    List<Device> findAllDevice();

    List<Device> findDevice(String deviceId);

    List<City> findCityByPopulation(int population);
}
